<?php
/**
 * Manicipality model
 * 
 * @author Mirche
 * @version 0.1
 *
 */
class Municipality extends AppModel{
	
	var $name = "Municipality";
	
	 var $belongsTo = array(
        'City' => array(
            'className'    => 'City',
            'foreignKey'    => 'city_id'
        )
    ); 
	
	/**
	 * Manicipality has many objects
	 * @var array
	 */
	var $hasMany = array(
        'Objekt' => array(
            'className'  => 'Objekt'
            //'conditions' => array('Recipe.approved' => '1'),
            //'order'      => 'Recipe.created DESC'
        )
    );
	
	
}